import 'package:dio/dio.dart';

class CategoryAPI {
  final Dio _dio;

  CategoryAPI(this._dio);

  // 获取分类列表
  Future<dynamic> list() async {
    Response res = await _dio.get('/category');
    print('-- 分类接口被调用 --');
    return res.data;
  }
}
